import * as tslib_1 from "tslib";
import { observable, action } from "mobx";
import request from "../utils/request";
import * as api from "../api/api";
import { LoadHoc, loading } from "../hoc/loadHoc";
/**
 * 生活服务中心
 */
let LifeServiceStore = class LifeServiceStore extends LoadHoc {
  constructor() {
    super(...arguments);
    /**
     * 获取服务应用
     */
    this.allLifeService = {};
  }
  async getAllLifeService(params) {
    const { callBack } = params;
    let allLifeService = await request(api.ApplifeServiceCenterApiFetchParamCreactor.applifeServiceCenterGetAllLifeServiceCenterInfoAsync({}));
    this.allLifeService = allLifeService;
    callBack && callBack(allLifeService);
  }
};
export { LifeServiceStore as default };

tslib_1.__decorate([observable], LifeServiceStore.prototype, "allLifeService", undefined);
tslib_1.__decorate([loading, action], LifeServiceStore.prototype, "getAllLifeService", null);